const router = require('koa-router')()

const userController = require("../controller/users");

router.prefix('/users');

// 查询用户列表
router.get('/getuserlist', userController.getUserList)

// 根据条件查询用户列表
router.get("/search", userController.getUserList)

// 删除用户
router.delete('/del', userController.del)

// 添加用户
router.post("/add", userController.add)

// 编辑用户
router.put("/edit", userController.update)

module.exports = router
